using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class thumbs : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblThumbs.Text = string.Empty;
        dst_pbTableAdapters.pb_postTableAdapter postAdapter =
            new dst_pbTableAdapters.pb_postTableAdapter();

        DataTable dtPost = postAdapter.GetPostDataForThumbs();
        
        foreach (DataRow dr in dtPost.Rows)
        {
            lblThumbs.Text += "<a name=\"";
            lblThumbs.Text += dr["id"];
            lblThumbs.Text += "\"></a><span class=\"picturecontainer\"><a title=\"\" href=\"default.aspx?id=";
            lblThumbs.Text += dr["id"];
            lblThumbs.Text += "\"><img class=\"excerptpic\" title=\"";
            lblThumbs.Text += dr["post_title"] + " / " + Convert.ToDateTime(dr["post_date"]).ToString("MMMM d, yyyy");
            lblThumbs.Text += "\" height=\"75\" alt=\"\" src=\"photos/";
            lblThumbs.Text += dr["filename"];
            lblThumbs.Text += "_t.jpg\" width=\"75\" border=\"0\" /></a></span>";
        }
    }
}
